$(function(){
  var swiper = new Swiper('.swiper1', {  pagination : '.pagination1',  loop:true,  grabCursor: true });
 function mytime2(){
	swiper.swipeNext();
	var t=setTimeout(function(){  	mytime2(); },5000);
}
  mytime2();
  //Navigation arrows
  $('.arrow-left').click(function(e) {
   e.preventDefault()
   swiper.swipePrev()
  });
  $('.arrow-right').click(function(e) {
   e.preventDefault()
   swiper.swipeNext()
  });
  //Clickable pagination
   $('.pagination1 .swiper-pagination-switch').click(function(){
   swiper.swipeTo($(this).index())
  });
});

$(document).ready(function(){
var w136=$(window).width();
var h1245=(w136 * 260)/680;
$(".swiper-slide,.sl1256").css({ "width":w136,"height":h1245});
$(".swiper1,.home-device,.swiper-main").css({ "width":w136,"height":eval(h1245 +30)});	
$(".swiper-slide .image").css({ "width":w136,"height":eval(h1245)});
$(".swiper-wrapper").css({ "transform":"translate3d(0px, 0px, 0px)","-webkit-transform":"translate3d(0px, 0px, 0px)","-ms-transform":"translate(0px, 0px)","-o-transform":"translate3d(0px, 0px, 0px)" });
$(window).resize(function(){
 var w136=$(window).width();
 var h1245=(w136 * 260)/680;
 $(".swiper-slide,.sl1256").css({ "width":w136,"height":h1245});
 $(".swiper1,.home-device,.swiper-main").css({ "width":w136,"height":eval(h1245 +30)});		
 $(".swiper-slide .image").css({ "width":w136,"height":eval(h1245 )});
 $(".swiper-wrapper").css({ "transform":"translate3d(0px, 0px, 0px)","-webkit-transform":"translate3d(0px, 0px, 0px)","-ms-transform":"translate(0px, 0px)","-o-transform":"translate3d(0px, 0px, 0px)"  });
});	
});